import request from './request';

// 访问旅游景点的游客年龄分布
export const tourismAge = async () => {
  return request({
    url: '/tourism/new/age/dist',
    method: 'get'
  })
};

// 游客对景点的满意度
export const tourismSatisfaction = async () => {
  return request({
    url: '/tourism/new/satisfaction',
    method: 'get'
  })
};

// 游客对不同类型住宿的选择
export const tourismStay = async () => {
  return request({
    url: '/tourism/new/stay',
    method: 'get'
  })
};

// 不同天气条件下游客量的变化
export const tourismVisit = async () => {
  return request({
    url: '/tourism/new/weather/visit',
    method: 'get'
  })
};



// 评分占比
export const scoreRatio = async () => {
  return request({
    url: '/tourism/score/ratio',
    method: 'get'
  })
};

// 景点开放时间占比图
export const openingtime = async () => {
  return request({
    url: '/tourism/opening/time',
    method: 'get'
  })
};

// 首页评价的词云图
export const homepage = async () => {
  return request({
    url: '/medicine/home/page',
    method: 'get'
  })
};

// 评价人数占比
export const commentRatio = async () => {
  return request({
    url: '/tourism/comment/ratio',
    method: 'get'
  })
};

// 景点分布地区占比
export const tourismAddress = async () => {
  return request({
    url: '/tourism/address',
    method: 'get'
  })
};

// 评价人数TOP15统计
export const commentTop15 = async () => {
  return request({
    url: '/tourism/name/comment/top15',
    method: 'get'
  })
};

// 评分TOP15统计
export const scoreTop15 = async () => {
  return request({
    url: '/tourism/name/score/top15',
    method: 'get'
  })
};



// 评论人数与排名散点图
export const commentRanking = async () => {
  return request({
    url: '/tourism/comment/ranking',
    method: 'get'
  })
};

// 评论人数与评分散点图 -
export const commentScore = async () => {
  return request({
    url: '/tourism/comment/score',
    method: 'get'
  })
};

// 旅行表格列表
export const TravelList = async (data: any) => {
  return request({
    url: '/tourism/page',
    method: 'post',
    data
  })
};

// 数据表格图表
export const tourismPageChart = async (data: any) => {
  return request({
    url: '/tourism/page/chart',
    method: 'post',
    data
  })
};






// 中药表格列表
export const medicineList = async (data) => {
  return request({
    url: '/medicine/list',
    method: 'post',
    data
  })
};

// 地区
export const medicinePlace = async () => {
  return request({
    url: '/chart/medicinePlace',
    method: 'get'
  })
};

// 排行
export const topMedicines = async () => {
  return request({
    url: '/chart/topMedicines',
    method: 'get'
  })
};

// 分类
export const medicneCategory = async () => {
  return request({
    url: '/chart/medicneCategory',
    method: 'get'
  })
};

// 中药剂型统计
export const medicineFormulation = async () => {
  return request({
    url: '/medicine/formulation',
    method: 'get'
  })
};

// 中药原材料统计
export const medicineGrass = async () => {
  return request({
    url: '/medicine/grass',
    method: 'get'
  })
};

// 中药处方种类统计
export const medicinePrescription = async () => {
  return request({
    url: '/medicine/prescription',
    method: 'get'
  })
};

// 中药类型统计
export const medicineType = async () => {
  return request({
    url: '/medicine/type',
    method: 'get'
  })
};


// 微博表格列表
export const MicroBlogList = async (data) => {
  return request({
    url: '/article/page',
    method: 'post',
    data
  })
};




// 登录
export const loginData = async () => {
  return request({
    url: '/chart/loginData',
    method: 'get'
  })
};

// 首页评价的词云图
export const articleHomePage = async () => {
  return request({
    url: '/medicine/home/page',
    method: 'get'
  })
};

// 文章类型占比
export const articleType = async () => {
  return request({
    url: '/article/type',
    method: 'get'
  })
};

// 文章转发数量统计图
export const articleReposts = async () => {
  return request({
    url: '/article/reposts',
    method: 'get'
  })
};

// 文章发布地区统计图
export const articleRegion = async () => {
  return request({
    url: '/article/region',
    method: 'get'
  })
};

// 文章点赞量分析
export const articleLike = async () => {
  return request({
    url: '/article/like',
    method: 'get'
  })
};




// 热词情感趋势
export const articlehot_words = async () => {
  return request({
    url: '/article/hot_words',
    method: 'get'
  })
};

// 热词Top10
export const articleHot_wordsTop10 = async () => {
  return request({
    url: '/article/hot_words/top10',
    method: 'get'
  })
};

// 用户评论趋势
export const articleCreated_at = async () => {
  return request({
    url: '/article/created_at',
    method: 'get'
  })
};

// 文章评论数量统计图
export const articleComments = async () => {
  return request({
    url: '/article/comments',
    method: 'get'
  })
};

// 中医馆数量变化趋势
export const medicinenewhospital = async () => {
  return request({
    url: '/medicine/new/hospital',
    method: 'get'
  })
};

// 中药出口量
export const medicinenewnumyield = async () => {
  return request({
    url: '/medicine/new/num-yield',
    method: 'get'
  })
};

// 中药成交额
export const medicinenewtransaction = async () => {
  return request({
    url: '/medicine/new/transaction/volume',
    method: 'get'
  })
};

// 中医就诊趋势
export const medicinenewvisit = async () => {
  return request({
    url: '/medicine/new/visit',
    method: 'get'
  })
};